import java.util.Scanner;

public class Day_31_2_分解因数 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()) {
            int a = scan.nextInt();
            System.out.print(a+" = ");
            for(int i = 2; i < a; ++i) {
                while(a % i == 0 && i != a) {
                    System.out.print(i+" * ");
                    a = a / i;
                }
            }
            System.out.println(a);
        }
    }
}
